<?php 
/**
 * $JA#COPYRIGHT$
 */
 // no direct access
defined ( '_JEXEC' ) or die ( 'Restricted access' );

if( !class_exists('LofImageHelper') ){
	
	jimport( 'joomla.filesystem.file' );
	
	class LofImageHelper {
		
		static function parserImage( $text ){
			$regex = "/\<img.+src\s*=\s*\"([^\"]*)\"[^\>]*\>/";
			preg_match ($regex, $text, $matches); 
			$images = (count($matches)) ? $matches : array();
			return count($images) ? $images[1] : '';
		}
		
		static function parseImages(){
			$regex = "/\<img.+src\s*=\s*\"([^\"]*)\"[^\>]*\>/";
			preg_match($regex, $text, $matches); 	
		}
		
		public function renderThumnail(){
			
		}
		
		public function _resize(){
			
		}
		
		public function _crop(){
			
		}
	}
}
?>